package com.xhui.vimarket.zkplus.zul.attr.bus.impl;

import lombok.Setter;
com.xhui.vimarket.zkplusui.vimarket.zkplus.zul.attrcom.xhui.vimarket.zkplusrt com.xhui.vimarket.zkplus.zulcom.xhui.vimarket.zkplusun;
import com.xhui.vimarket.zkplus.zul.attr.bus.AttrProc;

/**
 * .
 * 
 * @版权：福富软件 版权所有 (c) 2011
 * @author wuyx
 * @version Revision 1.0.0
 * @see:
 * @创建日期：2012-1-4
 * @功能说明：
 * 
 */
public class BaseAttrProcImpl implements AttrProc {
    
    /**
     * 调用方法名.
     */
    @Setter
    private String funName;
    
    /**
     * .
     * 
     * @param funName 方法名
     */
    public BaseAttrProcImpl(String funName) {
        this.setFunName(funName);
    }
    
    @Override
    public void onEvent(Object param, AttrExt attrExt) {
        AttrFun fun = attrExt.getAttrBus().getFunListener(BaseAttrProcImpl.this.funName);
        if (fun != null) {
            fun.call(param);
        }
    }
    
}
